
local Tube = require'entities.tube'

SupplyPipe = {}
SupplyPipe.mt = { __index = SupplyPipe }
setmetatable(SupplyPipe, Tube.mt)

function SupplyPipe.initialize(kind, x, y, transform, layer)


	local SUPPLYPIPE_t = Tube.new('supply_tubes', nil, x, y, transform, layer)
	setmetatable(SUPPLYPIPE_t, SupplyPipe.mt)

	SUPPLYPIPE_t.tile_grid:setTile(1, 1, kind)
	SUPPLYPIPE_t.health = SUPPLYPIPE_t.health * SUPPLY_PIPE_HEALTH_MOD
	SUPPLYPIPE_t.dmg_rate =  SUPPLYPIPE_t.dmg_rate/SUPPLY_PIPE_HEALTH_MOD


	return SUPPLYPIPE_t

end


function SupplyPipe.new(kind, x, y, transform, layer)

	local o = SupplyPipe.initialize(kind, x, y, transform, layer)

	return o

end



return SupplyPipe